<?php
/**
 * 
 * 
 * @version $Id: WeiboController.php 11 2012-10-12 08:40:34Z linsir123 $
 */
class WeiboController extends Controller 
{
	/**
	 * @var 模型
	 */
	public $weibo;
	
	/**
	 * 构造函数
	 */
	public function __construct()
	{
		WeiboView::init();
	}
	
	/**
	 * 跳转
	 */
	public function r($action = null, $goto = true)
	{
		$r = $this->_controllerName;
		if ( ! empty($action)) 
			$r .= "/". $action;
			
		///
		if ($goto) 
			lpUrl::_r($r);
			
		return lpUrl::__($r);
	}
	
	/**
	 * 输出
	 */
	public function ajax($content)
	{
		echo $content;
		exit;
	}
	
	/**
	 * 404
	 */
	public function miss()
	{
		echo 404;
	}
}
